package com.wondertek.service.service.business;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wondertek.service.dto.business.res.DeviceErrorRecordMessageRes;
import com.wondertek.service.entity.business.DeviceErrorRecordMessagePo;

import java.util.List;

/**
 * @author wangyu
 */
public interface DeviceErrorRecordMessageService extends IService<DeviceErrorRecordMessagePo> {

    /**
     * 根据userId查询告警站内消息
     * @return
     */
    Page<DeviceErrorRecordMessageRes> findMessageByUserId(Integer pageNo, Integer pageSize);


    /**
     * 根据id修改告警站内消息已读状态
     * @param id
     */
    void updateMessageReadById(String id);
}
